/*
 * Copyright 2011-2020 www.youjiang114.com
 *
 * All right reserved.
 */
package com.holylin.learning.java.language.innerClass;

/**
 * @author holylin
 * @since 2012-2-11
 */
public  class InnerClassInheritTest {
	public static String name;
	class InnerClass{
		static final String name ="";
		InnerClass(String name){
			
			System.out.println(name);
		}
		
	}
	
	static class InnerStaticClass{
		public static String name ="test";
		InnerStaticClass(String name){
			
			System.out.println(name);
		}
		
	}
	
	public static void main(String[] args) {
		
	}
}

class InnerClassInherit{
	class InnerClass2 extends InnerClassInheritTest.InnerClass{

		InnerClass2(InnerClassInheritTest innerClassInheritTest, String name) {
			innerClassInheritTest.super(name);
			System.out.println(this+":"+name);
		}
		
		
	}
	
	public static void main(String[] args) {
		InnerClassInheritTest.InnerStaticClass innerStaticClass = new InnerClassInheritTest.InnerStaticClass("23423");
		System.out.println(innerStaticClass.name);
		System.out.println(InnerClassInheritTest.InnerStaticClass.name);
	}
	
	
}
